home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ MGA PowerDesk 1.xpl < prev    next >
Text File  |  1999-09-22  |  1KB  |  56 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="7"
  3. "COUNT"="2"
  4. "UIPATH"="Hardware\Video Cards\Matrox"
  5. "NAME"="PowerDesk VSync"
  6. "VERSION"="1.05"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Enable VSync (better image quality)" 
  9. "TEXT 2"="Disable VSync (better performance)"
  10. "DESCRIPTION 1"="Some settings for your Matrox G200 card (incl. Millennium and Mystique)."
  11. "DESCRIPTION 2"="NOTE: This plug-in requires that Matrox PowerDesk is installed."
  12. "AUTHOR"="Xteq Systems"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  15. "COMMENT 2"="Thanks to CptSiskoX!"
  16.  
  17.  
  18. sP1="HKLM\SOFTWARE\Matrox\PowerDesk\Current Settings\"
  19. sV1="HKLM\SOFTWARE\Matrox\PowerDesk\Current Settings\Flip on VBlank" 'STR
  20. Sub Plugin_Initialize 
  21.  if RegPathExists(sP1) then
  22.     i=RegReadValue(sV1)
  23.     if i="1" then 
  24.        SetUiElement 1,true
  25.     else
  26.        SetUiElement 2,true
  27.     end if
  28.  
  29.  else
  30.     Call Disable() 
  31.  end if
  32.  
  33. End Sub
  34.  
  35.  
  36. Sub Plugin_CheckData(ElementIndex)
  37. End Sub
  38.  
  39.  
  40.  
  41. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  42.  if GetUIElement(1)=true then
  43.     i=1
  44.  else
  45.     i=0
  46.  end if
  47.  Call RegWriteValue(sV1,i,1)
  48.  
  49.  
  50.  Call Restart()
  51. End Sub
  52.  
  53.  
  54. Sub Plugin_Terminate 
  55. End Sub
  56.